home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 15590 < prev    next >
Encoding:
Text File  |  1996-08-05  |  1.1 KB  |  28 lines

  1. Path: FreeNet.Carleton.CA!am573
  2. From: am573@FreeNet.Carleton.CA (Jason Olenick)
  3. Newsgroups: comp.lang.c++
  4. Subject: Newbie: Character values?
  5. Date: 7 Apr 1996 08:38:06 GMT
  6. Organization: The National Capital FreeNet
  7. Sender: am573@freenet6.carleton.ca (Jason Olenick)
  8. Message-ID: <4k7ute$oud@freenet-news.carleton.ca>
  9. Reply-To: am573@FreeNet.Carleton.CA (Jason Olenick)
  10. NNTP-Posting-Host: freenet6.carleton.ca
  11.  
  12.  
  13. I am trying to see if the user has typed the Insert or Delete key in a
  14. program I wrote...but the unsinged char is giving the values of 0 then 82
  15. for insert (same as R) and delete is 0 then 83 (same as S).  So what I'm
  16. doing then is seeing if the chars value is 0 if it was then see if the
  17. next chars value is 82 or 83.  Is there an easier way around this?  Not
  18. that this is hard, it just doesn't seem right.
  19.  
  20. Thanks,
  21. -Jason
  22.  
  23. --
  24. -/-\-/-\-/-\-/-\-/-\-/-\-/-\-/-\-/-\-/-\-/-\-/-\-/-\-/-\-/-\-/-\-/-\-/-\
  25. Donutßoy aka  | "The fairest thing we can experience is the mysterious. \
  26. am573@Freenet | One who knows it not and can no longer wonder, no longer |
  27. .Carleton.CA  | feel amazement, is as good as dead." - Albert Einstein   |
  28.